﻿using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using UtilZ.Dotnet.Ex.Base;
using UtilZ.Dotnet.Ex.Log;

namespace UtilZ.Dotnet.Ex.DataStruct
{
    /// <summary>
    /// 容器元素满了之后的处理模式
    /// </summary>
    public enum ContainerFullMode
    {
        /// <summary>
        /// 抛出容器已异常
        /// </summary>
        Exception = 0,

        /// <summary>
        /// 删除最新的项,以便为要写入的项留出空间
        /// </summary>
        DropNew = 1,

        /// <summary>
        /// 删除最旧的项，以便为要写入的项留出空间
        /// </summary>
        DropOld = 2,

        /// <summary>
        /// 忽略目标项
        /// </summary>
        Ignore = 3
    }    
}
